﻿Ext.define('yzmh.store.Classes', {
    extend: 'Ext.data.Store',
    model: 'yzmh.model.Class',
    //remoteSort: false,
    //buffered: false,
    autoLoad: true,
    sorters: [{
        property: 'id',
        direction: 'DESC'
    }],
    proxy: {
        type: 'ajax',
        api: {
            read: 'data/class.aspx?a=list',
            update: 'data/class.aspx?a=update'
        },
        reader: {
            type: 'json',
            root: 'data',
            totalProperty: 'total'
        },
        simpleSortMode: true
    }
});